var map = new AMap.Map("gaode", {
    resizeEnable: true
});
AMap.service(["AMap.PlaceSearch"], function() {
    var placeSearch = new AMap.PlaceSearch({ //构造地点查询类
        pageSize: 5,
        pageIndex: 1,
        city: "010", //城市
        map: map//,
        //panel: "panel"
    });
    //关键字查询
    placeSearch.search('wework', function(status, result) {
      console.log(status);
      console.log(result.poiList);
    });
});
